using System.ComponentModel.DataAnnotations;

namespace UpdaterManagement.Models
{
    public class User
    {
        public int Id { get; set; }
        
        [Required]
        public string Username { get; set; } = "";
        
        [Required]
        public string Password { get; set; } = "";
        
        [Required]
        public string RealName { get; set; } = "";
        
        public string? Email { get; set; }
        
        [Required]
        public string Role { get; set; } = "User";
        
        public DateTime CreatedTime { get; set; } = DateTime.Now;
        
        public DateTime? LastLoginTime { get; set; }
        
        public bool IsActive { get; set; } = true;
    }
}